﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using PiscoSourDominio;
using System.ServiceModel.Web;

namespace PiscoSourRESTServices
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ICartaLocales" in both code and config file together.
    [ServiceContract]
    public interface ICartaLocales
    {

        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "OCartaLocalRestaurante/{codigo}", ResponseFormat = WebMessageFormat.Json)]
        List<Carta_Local> ObtenerListaCartaLocal(string codigo);

        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "CartaLocal/{codigo}", ResponseFormat = WebMessageFormat.Json)]
        Carta_Local ObtenerCartaLocal(string codigo);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "ListaCartaLocales", ResponseFormat = WebMessageFormat.Json)]
        List<Carta_Local> ListaCartaLocales();
    }
}
